function authorCtrl($scope, $http) {
	
	var entityName = "Author";
	
	findAll(entityName, $http, $scope);
	
	
	$scope.showAddContainer = showAddContainer;
	
	$scope.hideAddContainer = showNewContainer;
	
	$scope.save = function(){
		var data = {
				firstName : jQuery("#firstNameText")[0].value,
				lastName: jQuery("#firstNameText")[0].value
				};
		console.log(data);
		
		$http({method: 'POST', url: './service/crud/' + entityName, data: data}).
		  success(function(data, status, headers, config) {
		    console.log(data);
		  }).
		  error(function(data, status, headers, config) {
		    // called asynchronously if an error occurs
		    // or server returns response with an error status.
		  });
	};

}